package com.rejuvee.myloginapplication.ui.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.rejuvee.myloginapplication.R;

public class MainActivity extends Activity {
    TextView welcome;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_login);

        welcome = findViewById(R.id.welcome);
        final Intent intent = getIntent();
        intent.getStringExtra("username");
        welcome.setText("欢迎您"+intent.getStringExtra("username"));
    }
}
